package com.cc.service.impl;

import com.cc.entity.Class;
import com.cc.entity.Student;
import com.cc.mapper.ClassMapper;
import com.cc.mapper.StudentMapper;
import com.cc.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 33314
 * @version 1.0
 * @description: TODO
 * @date 2025/6/21 14:41
 */
@Service
public class StuServiceImpl implements StuService {
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public List<Student> getStuList(Student student) {
        return studentMapper.getStuList(student);
    }

    @Override
    public int insertStu(Student student) {
        return studentMapper.insertStu(student);
    }

    @Override
    public int updateStu(Student student) {
        return studentMapper.updateStu(student);
    }

    @Override
    public int deleteStu(Integer studentId) {
        return studentMapper.deleteStu(studentId);
    }

    @Override
    public Student getStuDetail(int studentId) {
        return studentMapper.getStuDetail(studentId);
    }
}
